perm filename BBHELP.MCL[206,LSP] blob sn#334213 filedate 1978-02-15 generic text, type C, neo UTF8
COMMENT āŠ—   VALID 00002 PAGES
C REC  PAGE   DESCRIPTION
C00001 00001
C00002 00002	Print out options for BB programs
C00006 ENDMK
CāŠ—;
;;;Print out options for BB programs

(DEFUN  BBHELP ()
    (PROG (TOPIC)
	(BBMSG)
    HELP
	(SETQ TOPIC (READ))
	(COND ((EQ TOPIC 'HELP) (BBHELPER))
	      ((EQ TOPIC 'SYNTAX) (BBSYNHELPER))
	      ((EQ TOPIC 'PUB) (BBPUBHELPER))
	      ((EQ TOPIC 'LPT) (BBLPTHELPER))
	      ((EQ TOPIC 'TXT) (BBTXTHELPER))
	      ((EQ TOPIC 'EXIT) (RETURN 'Bye))
	      (T (BBERRHELPER TOPIC)))	   
	(GO HELP)))


(DEFUN BBMSG ()
    (TERPRI)
    (PRINC 
'|The BB programs convert a list of atoms having |)
    (TERPRI)
    (PRINC 
'|EXPR FEXPR or VALUE properties to an external form.|)
    (TERPRI)
    (PRINC 
'|Type HELP to get a list of BBHELP topics|)
    (TERPRI)
    (PRINC 
'|Type EXIT to get out of BBHELP|)
    (TERPRI)
)

(DEFUN BBHELPER ()
    (TERPRI)
    (PRINC   
'|HELP is available in the following topics:|)
    (TERPRI)
    (PRINC 
'|HELP SYNTAX PUB LPT TXT |)
    (TERPRI)
)

(DEFUN BBSYNHELPER ()
    (TERPRI)
    (PRINC   
'|BB is a FEXPR|)
    (TERPRI)
    (PRINC   
'|The syntax for calling BB is (BB mode items filename fileext)|)
    (TERPRI)
    (TERPRI)
    (PRINC 
'|Thus (BB PUB FNS FOO OUT) runs BB in PUB mode on the list FNS|)
    (TERPRI)
    (PRINC 
'|and writes the result on FOO.OUT on <crunit>|)
    (TERPRI)
)

(DEFUN BBERRHELPER (TOPIC)
    (TERPRI)
    (PRINC
'|No information available on |)
    (PRINC TOPIC)
    (TERPRI)
    (PRINC
'|Type HELP to get a list of available topics or EXIT to get out.|)
    (TERPRI)
)

(DEFUN BBPUBHELPER ()
    (TERPRI)
    (PRINC
'|BBPUB converts to external form using font conventions |)
    (TERPRI)
    (PRINC
'|and text responses defined in LSPMAC.PUB[LSP,CLT].|)
    (TERPRI)
    (PRINC
'|No additional pub commands are generated.|)
    (TERPRI)
)		


(DEFUN BBTXTHELPER ()
    (TERPRI)
    (PRINC
'|BB TXT converts to external form using font conventions |)
    (TERPRI)
    (PRINC
'|and text responses defined in LSPMAC.PUB[LSP,CLT].|)
    (TERPRI)
    (PRINC
'|Pub commands for a nofill, grouped block, are generated.|)
    (TERPRI)
)		


(DEFUN BBLPTHELPER ()
    (TERPRI)
    (PRINC
'|BB LPT converts to external form suitable printing on a lineprinter.|)
    (TERPRI)
    (PRINC
'|Operators functions and variables are lowercase, constants uppercase.|)
    (TERPRI)
)